package nc.processor.ncgenerate;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

import nc.jdbc.framework.processor.BaseProcessor;

public class MapStringProcessor extends BaseProcessor {

	private static final long serialVersionUID = 1369338328838961520L;

	@Override
	public Object processResultSet(ResultSet resultSet) throws SQLException {
		Map<String,String> map = new HashMap<String,String>();
		while (resultSet.next()) {
			map.put(resultSet.getString(1), resultSet.getString(2));
		}
		return map;
	}

}
